<?php
/**
 * 归类
 * @author yulipu
 */
include LIB_PATH . 'Action/YAction.class.php';
class ClassifyAction extends YAction {
	public function __construct() {
		parent::__construct();
	}
	
	public function index() {
		$articletypeid = y_getParam('tid', 'get');
		if(!is_numeric($articletypeid)) {die('_param error');}
		
		$data = D('Article')->getListByPageAndCondition('articletypeid='.$articletypeid);
		$pageString = $data['pageString'];
		unset($data['pageString']);
		$this->assign('pageString', $pageString);
		$this->assign('data', $data);
		
		$this->display();
	}
}